package cn.kpi.dao.workassessment;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.workassessment.WorkAssTemplateEntity;
import cn.kpi.entity.workassessment.WorkKPItemEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@MyBatisDao
public interface WorkKPIDao {

    public List<Map> GetWorkKPIMapByTempIdAndColumns(@Param("tempid") Long tempid, @Param("columns") String columns) throws Exception;

    public int InsertWorkKPItemBatch(List<WorkKPItemEntity> list) throws Exception;

    public int DeleteWorkKPItem(@Param("templateid") Long templateid);


    public List<WorkKPItemEntity> getWeights(@Param("templateid") Long templateid);

    public List<Map> getAssindexS(@Param("templateid") Long templateid);

    public List<WorkAssTemplateEntity> getWorkAssTemplateEntitys(@Param("year") int year, @Param("quarter") int quarter) throws Exception;


}
